package manong.serviceimpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import manong.beans.student;
import manong.mapper.studentMapper;
import manong.service.studentService;

@Service @Transactional
public class studentImpl implements studentService{

	
	@Resource
	studentMapper smapper;
	
	public int add_student(student student) {
		
		return smapper.add_student(student);
	}

	
	public void update_student(student student) {
		smapper.update_student(student);
		
	}

	public int delete_student(int sno) {
		
		return smapper.delete_student(sno);
	}


	public List<student> getAll_student() {
		
		return smapper.getAll_student();
	}

	
	public student get_student(int sno) {
	
		return smapper.get_student(sno);
	}


	@Override
	public student login1(String id, String password) {
		// TODO Auto-generated method stub
		return smapper.login1(id,password);
	}

}
